package com.ymttest.database.mapping.godmch;

import com.ymttest.database.model.godmch.markup_condition_type;
import com.ymttest.database.model.godmch.markup_condition_typeExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface markup_condition_typeMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table markup_condition_type
     *
     * @mbggenerated Tue Jul 07 10:42:21 CST 2020
     */
    @SelectProvider(type=markup_condition_typeSqlProvider.class, method="countByExample")
    int countByExample(markup_condition_typeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table markup_condition_type
     *
     * @mbggenerated Tue Jul 07 10:42:21 CST 2020
     */
    @DeleteProvider(type=markup_condition_typeSqlProvider.class, method="deleteByExample")
    int deleteByExample(markup_condition_typeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table markup_condition_type
     *
     * @mbggenerated Tue Jul 07 10:42:21 CST 2020
     */
    @Delete({
        "delete from markup_condition_type",
        "where type_id = #{type_id,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer type_id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table markup_condition_type
     *
     * @mbggenerated Tue Jul 07 10:42:21 CST 2020
     */
    @Insert({
        "insert into markup_condition_type (type_id, type_title, ",
        "type_level, type_value)",
        "values (#{type_id,jdbcType=INTEGER}, #{type_title,jdbcType=VARCHAR}, ",
        "#{type_level,jdbcType=INTEGER}, #{type_value,jdbcType=VARCHAR})"
    })
    int insert(markup_condition_type record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table markup_condition_type
     *
     * @mbggenerated Tue Jul 07 10:42:21 CST 2020
     */
    @InsertProvider(type=markup_condition_typeSqlProvider.class, method="insertSelective")
    int insertSelective(markup_condition_type record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table markup_condition_type
     *
     * @mbggenerated Tue Jul 07 10:42:21 CST 2020
     */
    @SelectProvider(type=markup_condition_typeSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="type_id", property="type_id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="type_title", property="type_title", jdbcType=JdbcType.VARCHAR),
        @Result(column="type_level", property="type_level", jdbcType=JdbcType.INTEGER),
        @Result(column="type_value", property="type_value", jdbcType=JdbcType.VARCHAR)
    })
    List<markup_condition_type> selectByExample(markup_condition_typeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table markup_condition_type
     *
     * @mbggenerated Tue Jul 07 10:42:21 CST 2020
     */
    @Select({
        "select",
        "type_id, type_title, type_level, type_value",
        "from markup_condition_type",
        "where type_id = #{type_id,jdbcType=INTEGER}"
    })
    @Results({
        @Result(column="type_id", property="type_id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="type_title", property="type_title", jdbcType=JdbcType.VARCHAR),
        @Result(column="type_level", property="type_level", jdbcType=JdbcType.INTEGER),
        @Result(column="type_value", property="type_value", jdbcType=JdbcType.VARCHAR)
    })
    markup_condition_type selectByPrimaryKey(Integer type_id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table markup_condition_type
     *
     * @mbggenerated Tue Jul 07 10:42:21 CST 2020
     */
    @UpdateProvider(type=markup_condition_typeSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") markup_condition_type record, @Param("example") markup_condition_typeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table markup_condition_type
     *
     * @mbggenerated Tue Jul 07 10:42:21 CST 2020
     */
    @UpdateProvider(type=markup_condition_typeSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") markup_condition_type record, @Param("example") markup_condition_typeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table markup_condition_type
     *
     * @mbggenerated Tue Jul 07 10:42:21 CST 2020
     */
    @UpdateProvider(type=markup_condition_typeSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(markup_condition_type record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table markup_condition_type
     *
     * @mbggenerated Tue Jul 07 10:42:21 CST 2020
     */
    @Update({
        "update markup_condition_type",
        "set type_title = #{type_title,jdbcType=VARCHAR},",
          "type_level = #{type_level,jdbcType=INTEGER},",
          "type_value = #{type_value,jdbcType=VARCHAR}",
        "where type_id = #{type_id,jdbcType=INTEGER}"
    })
    int updateByPrimaryKey(markup_condition_type record);
}